package controller;


import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/ServletCidades")
public class ServletCidades extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    public ServletCidades() {
        super();
    }

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String estado = (String)request.getParameter("estados");
		PrintWriter pw = response.getWriter();
		
		pw.println("<html>");
		pw.println("<select name='cidades'>");
		pw.println("<option valeu='for'>fortaleza</option>");
		pw.println("</select>");
		pw.println("<html>");
		pw.close();
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

	}

}
